package com.cdcas.map;

import java.util.LinkedHashMap;
import java.util.Map;

public class LinkedHashMapDemo {
    public static void main(String[] args) {
        Map<Integer,String> lhm = new LinkedHashMap<>();
        lhm.put(1,"aaa");
        lhm.put(2,"4444");
        lhm.put(null,"555");
        lhm.put(4,null);
        lhm.forEach((key,value)->{
            System.out.println("key=" + key + " ,value=" + value);
        });
    }
}
